<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.portalbs.basic.user.oper.OperList" />
<script language="javascript">
	
	function operQuery_onclick(form,page){
		form.instData();
		form.parent.refresh();
	}
	
	function operReset_onclick(form,page){
		form.reset();
		form.parent.refresh();
	}
	
	//密码重置
	function operPwdBtn_onclick(grid,page){
		var sendset = new Yacon.data.DataSet(page);
		sendset.setWhereField("oper_key1",grid.getFieldValue("oper_key"));
		sendset.switchMessage("pwd_rest");
	}
	
	//角色授权
	function operRoleAuthBtn_onclick(grid,page){
		
		var operKey = grid.getFieldValue("oper_key");
		var operTyp = grid.getFieldValue("OPER_TYP");
		if(operKey==null||operKey=="") {
			alert("获取的人员主键信息为空！");
			return;
		}
		if(operTyp=="1") {
			alert("管理员类型拥有所有权限不需要授权角色！");
			return;
		}
		
		Yacon.showModal({
			width:"90%",
			height:"80%",
			url:"role/appTree.jsp?operKey="+operKey,
			close:"operAuth_window_close"
		});
		
	}
	
	function operAuth_window_close(windows,page){
		page.find("operRoldGrid").refresh();
	}
</script>
